package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MyConsumerDataMapper;
import com.ruoyi.system.domain.MyConsumerData;
import com.ruoyi.system.service.IMyConsumerDataService;

/**
 * 顾客信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-16
 */
@Service
public class MyConsumerDataServiceImpl implements IMyConsumerDataService 
{
    @Autowired
    private MyConsumerDataMapper myConsumerDataMapper;

    /**
     * 查询顾客信息
     * 
     * @param id 顾客信息主键
     * @return 顾客信息
     */
    @Override
    public MyConsumerData selectMyConsumerDataById(Long id)
    {
        return myConsumerDataMapper.selectMyConsumerDataById(id);
    }

    /**
     * 查询顾客信息列表
     * 
     * @param myConsumerData 顾客信息
     * @return 顾客信息
     */
    @Override
    public List<MyConsumerData> selectMyConsumerDataList(MyConsumerData myConsumerData)
    {
        return myConsumerDataMapper.selectMyConsumerDataList(myConsumerData);
    }

    /**
     * 新增顾客信息
     * 
     * @param myConsumerData 顾客信息
     * @return 结果
     */
    @Override
    public int insertMyConsumerData(MyConsumerData myConsumerData)
    {
        return myConsumerDataMapper.insertMyConsumerData(myConsumerData);
    }

    /**
     * 修改顾客信息
     * 
     * @param myConsumerData 顾客信息
     * @return 结果
     */
    @Override
    public int updateMyConsumerData(MyConsumerData myConsumerData)
    {
        return myConsumerDataMapper.updateMyConsumerData(myConsumerData);
    }

    /**
     * 批量删除顾客信息
     * 
     * @param ids 需要删除的顾客信息主键
     * @return 结果
     */
    @Override
    public int deleteMyConsumerDataByIds(Long[] ids)
    {
        return myConsumerDataMapper.deleteMyConsumerDataByIds(ids);
    }

    /**
     * 删除顾客信息信息
     * 
     * @param id 顾客信息主键
     * @return 结果
     */
    @Override
    public int deleteMyConsumerDataById(Long id)
    {
        return myConsumerDataMapper.deleteMyConsumerDataById(id);
    }
}
